﻿using System;
using System.Collections.Generic;

using System.Text;
using yb.commerce.Model;
using yb.commerce.DAL;

namespace yb.commerce.BLL
{
    public class ShoppingDateBusiness
    {
        public bool Add(ShoppingDate shippingDate)
        {
            return new ShoppingDateDAO().Add(shippingDate);
        }

        public bool Delete(int Id)
        {
            return new ShoppingDateDAO().Delete(Id);
        }

        public bool Update(ShoppingDate shippingDate)
        {
            return new ShoppingDateDAO().Update(shippingDate);
        }

        public ShoppingDate GetEntity(int Id)
        {
            return new ShoppingDateDAO().GetEntity(Id);
        }

        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new ShoppingDateDAO().GetList(fieldList,orderField,orderBy,pageIndex,pageSize,where);
        }
    }
}
